@green: #438977;
@gray: rgb(100, 111, 121);
@lightgray: #f0f4f5;
@darkgray: #393a3a;

@medium: 768px;
@large: 992px;
@xlarge: 1200px;
@xxlarge: 1600px;
@xxxlarge: 2200px;

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
a,
label,
input,
small {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

h1 {
  font-size: 45px;
  margin-bottom: 25px;
}

h2 {
  font-size: 40px;
  margin-top: 20px;
  margin-bottom: 10px;
}

h3 {
  color: @gray;
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 10px;
}

p,
ul {
  font-size: 16px;
}

img {
  max-width: 100%;
}

a {
  color: @green;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

small {
  color: @gray;
  display: block;
  font-size: 16px;
  font-style: italic;
}

.btn-primary {
  background: @green;
  color: #fff !important;

  &:hover {
    background: darken(@green, 10%);
  }
}

.container-ties {
  background-image: url(/images/ties.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 0 75%;
}

.container-hero {
  padding: 200px 0 0 0;
  text-align: center;

  @media only screen and (max-width: @medium) {
    // text-align: center;
  }

  @media only screen and (min-width: @large) {
  }

  .btn {
    padding: 12px 24px;
    margin-top: 24px;
  }

  .pr {
    box-shadow: 0 30px 50px 0 rgba(34, 43, 55, 0.1);
  }

  & + .container-spaced {
    margin-top: -120px;
  }
}

.container-spaced {
  padding: 100px 0;
}

.container-light {
  background-color: @lightgray;

  h2 {
    color: #000;
  }
}

.customer-row {
  margin: 60px 10px;
  display: grid;
  grid-gap: 60px 50px;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;

  @media only screen and (min-width: @medium) {
    grid-template-columns: repeat(3, 1fr);
  }

  @media only screen and (min-width: @large) {
    grid-template-columns: repeat(5, 1fr);
  }
}

footer {
  padding: 20px 20px;
  background-color: @darkgray;
  color: #fff;

  a {
    color: #fff;
    position: relative;

    &:after {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 1px;
      background: #fff;
      content: '';
      opacity: 0;
      transform: translateY(5px);
      transition: all 0.3s;
    }

    &:hover {
      color: #fff;
      text-decoration: none;

      &:after {
        transform: translateY(0px);
        opacity: 1;
      }
    }
  }

  .copyright {
    background-color: #fff;
    border-radius: 11px;
    padding: 6px 8px;
  }

  h3 {
    margin-left: 24px;
    font-size: 14px;
    font-weight: bold;
    color: #8f99a2;
    text-align: left;
  }

  ul {
    margin-left: 24px;
    list-style: none;

    li {
      margin-top: 24px;
    }
  }
}

.container-howitworks {
  padding-top: 60px;
}

.docs-sidebar {
  width: 20%;
  left: 26px;
  top: 50px;
  padding: 20px;
  margin: 0px 0 0 10px;

  li {
    margin-top: 27px;
    font-size: 16px;
    padding-left: 7px;
    border-left: 5px solid transparent;
    transition: all 0.2s;
    list-style: none;

    a:hover {
      text-decoration: none;
    }

    &:hover,
    &:focus {
      border-left-color: @green;
    }
  }
}

.docs-content {
  position: absolute;
  right: 28%;
  padding: 10px 20px;
  width: 50%;
  color: black;

  h1,
  h2 {
    font-weight: normal;
  }

  h1 {
    font-size: 50px;
    text-transform: none;
    color: @green;
    margin-bottom: 28px;
  }

  h2 {
    font-size: 25px;
    text-transform: none;
    border-left: 7px solid @green;
    padding-left: 12px;
    line-height: 1.6;
    padding-bottom: 4px;

    a:hover,
    a:focus {
      text-decoration: none;
      color: @green;
    }
  }

  h3 {
    font-size: 20px;
    text-transform: none;
  }

  h4 {
    font-size: 16px;
    font-weight: bold;
    text-transform: none;
  }

  p {
    font-size: 14px;
  }

  ul,
  ol {
    font-size: 14px;
    margin: 15px 45px;
  }

  li {
    margin-top: 10px;
  }
}

@media only screen and (max-width: @medium) {
  h1,
  h2,
  h3 {
    text-align: center;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-content {
    position: static;
    width: 90%;
  }
}

.github {
  background-image: url('');
  background-size: cover;
  display: block;
  width: 30px;
  height: 30px;
}

pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.42857143;
  color: #333;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.container-plain {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  img {
    width: 30px;
  }

  ul {
    padding-left: 18px;
    margin-bottom: 15px;
  }
}

.live-text {
  height: 35px;
  font-size: 16px;
  position: relative;
  overflow: hidden;

  a {
    animation: slideout 0.5s ease-in;
    color: #000;
    display: inline-block;
    text-decoration: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 50px;

    &:last-child {
      animation: slidein 0.5s ease-in;
      bottom: 0;
      position: relative;

      &:after {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 2px;
        background: @green;
        content: '';
        opacity: 0;
        transform: translateY(5px);
        transition: all 0.3s;
      }

      &:hover {
        &:after {
          transform: translateY(0px);
          opacity: 1;
        }
      }
    }
  }

  .pad {
    margin: 0 2px;
    font-weight: 600;
  }
}

@keyframes slideout {
  0% {
    bottom: 0;
    opacity: 1;
  }

  100% {
    bottom: 50px;
    opacity: 0;
  }
}

@keyframes slidein {
  0% {
    bottom: -50px;
    opacity: 0;
  }

  100% {
    bottom: 0;
    opacity: 1;
  }
}
